﻿using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Systematize.Domain.Entities;

namespace Systematize.Data.EntityFramework.Context
{
    public interface IDbContext
    {
        DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity)
            where TEntity : Entity;

        IDbSet<TEntity> Set<TEntity>()
            where TEntity : Entity;

        int SaveChanges();
    }
}
